#!/bin/bash

if [ $# -ne 1 ] 
then

	echo "first parameter is the port number"
	echo "run ./run_db port_number"
	exit

fi

echo "starting db on port $1"
java -cp lib/hsqldb.jar org.hsqldb.server.Server --database.0 file:mydb --dbname.0 xdb -port $1 &

